package com.waypolice.pojo;

import java.io.Serializable;

public class UpmsFileNum implements Serializable {
    private Integer fileId;

    private Integer sortNum;

    private String code;

    private String length;

    private String separator;

    private String pkCode;

    private String str1;

    private String str2;

    private String str3;

    private String str4;

    private String str5;

    public Integer getFileId() {
        return fileId;
    }

    public void setFileId(Integer fileId) {
        this.fileId = fileId;
    }

    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getLength() {
        return length;
    }

    public void setLength(String length) {
        this.length = length == null ? null : length.trim();
    }

    public String getSeparator() {
        return separator;
    }

    public void setSeparator(String separator) {
        this.separator = separator == null ? null : separator.trim();
    }

    public String getPkCode() {
        return pkCode;
    }

    public void setPkCode(String pkCode) {
        this.pkCode = pkCode == null ? null : pkCode.trim();
    }

    public String getStr1() {
        return str1;
    }

    public void setStr1(String str1) {
        this.str1 = str1 == null ? null : str1.trim();
    }

    public String getStr2() {
        return str2;
    }

    public void setStr2(String str2) {
        this.str2 = str2 == null ? null : str2.trim();
    }

    public String getStr3() {
        return str3;
    }

    public void setStr3(String str3) {
        this.str3 = str3 == null ? null : str3.trim();
    }

    public String getStr4() {
        return str4;
    }

    public void setStr4(String str4) {
        this.str4 = str4 == null ? null : str4.trim();
    }

    public String getStr5() {
        return str5;
    }

    public void setStr5(String str5) {
        this.str5 = str5 == null ? null : str5.trim();
    }

    @Override
    public String toString() {
        return "UpmsFileNum{" +
                "fileId=" + fileId +
                ", sortNum=" + sortNum +
                ", code='" + code + '\'' +
                ", length='" + length + '\'' +
                ", separator='" + separator + '\'' +
                ", pkCode='" + pkCode + '\'' +
                ", str1='" + str1 + '\'' +
                ", str2='" + str2 + '\'' +
                ", str3='" + str3 + '\'' +
                ", str4='" + str4 + '\'' +
                ", str5='" + str5 + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof UpmsFileNum)) return false;

        UpmsFileNum that = (UpmsFileNum) o;

        if (fileId != null ? !fileId.equals(that.fileId) : that.fileId != null) return false;
        if (sortNum != null ? !sortNum.equals(that.sortNum) : that.sortNum != null) return false;
        if (code != null ? !code.equals(that.code) : that.code != null) return false;
        if (length != null ? !length.equals(that.length) : that.length != null) return false;
        if (separator != null ? !separator.equals(that.separator) : that.separator != null) return false;
        if (pkCode != null ? !pkCode.equals(that.pkCode) : that.pkCode != null) return false;
        if (str1 != null ? !str1.equals(that.str1) : that.str1 != null) return false;
        if (str2 != null ? !str2.equals(that.str2) : that.str2 != null) return false;
        if (str3 != null ? !str3.equals(that.str3) : that.str3 != null) return false;
        if (str4 != null ? !str4.equals(that.str4) : that.str4 != null) return false;
        return str5 != null ? str5.equals(that.str5) : that.str5 == null;
    }

    @Override
    public int hashCode() {
        int result = fileId != null ? fileId.hashCode() : 0;
        result = 31 * result + (sortNum != null ? sortNum.hashCode() : 0);
        result = 31 * result + (code != null ? code.hashCode() : 0);
        result = 31 * result + (length != null ? length.hashCode() : 0);
        result = 31 * result + (separator != null ? separator.hashCode() : 0);
        result = 31 * result + (pkCode != null ? pkCode.hashCode() : 0);
        result = 31 * result + (str1 != null ? str1.hashCode() : 0);
        result = 31 * result + (str2 != null ? str2.hashCode() : 0);
        result = 31 * result + (str3 != null ? str3.hashCode() : 0);
        result = 31 * result + (str4 != null ? str4.hashCode() : 0);
        result = 31 * result + (str5 != null ? str5.hashCode() : 0);
        return result;
    }
}